export const getRouters = () => {
    return new Promise((resolve) => {
        const backData = {
            code: 200,
            msg: '操作成功！',
            data: [
              {
                    path: '/seaSources',
                    label: '入海陆源',
                    name: 'seaSources',
                    component: 'Layout',
                    redirect: 'noRedirect',
                    alwaysShow: true,
                    meta: { title: '入海陆源', icon: '&#xe6d3;', type: '入海陆源' },
                    children: [
                        {
                            path: 'seaRiver',
                            label: '入海河流',
                            name: 'seaRiver',
                            redirect: 'noRedirect',
                            component: 'seaSources/seaRiver',
                            alwaysShow: true,
                            meta: { title: '入海河流', icon: '&#xe60b;', type: '入海河流' },
                            children: [
                                {
                                    path: 'statisticalAnalysis',
                                    name: 'statisticalAnalysis',
                                    label: '统计分析',
                                    alwaysShow: true,
                                    meta: { title: '统计分析', icon: '&#xe606;' },
                                    component: 'seaSources/seaRiver/statisticalAnalysis',
                                    children: [
                                        {
                                            path: 'hssz',
                                            name: 'hssz',
                                            label: '海水水质',
                                            alwaysShow: true,
                                            redirect: 'noRedirect',
                                            meta: { title: '海水水质', icon: '&#xe606;' },
                                            component: 'seaSources/seaRiver/statisticalAnalysis',
                                            children: [
                                                {
                                                    path: 'zdhy',
                                                    name: 'zdhy',
                                                    label: '重点海域',
                                                    alwaysShow: true,
                                                    redirect: 'noRedirect',
                                                    meta: { title: '重点海域', icon: '&#xe606;' },
                                                    component: 'seaSources/seaRiver/statisticalAnalysis',
                                                    children: [
                                                        {
                                                            path: 'jcdata',
                                                            name: 'jcdata',
                                                            label: '监测数据',
                                                            redirect: 'noRedirect',
                                                            meta: { title: '监测数据', icon: '&#xe606;' },
                                                            component: 'seaSources/seaRiver/statisticalAnalysis',
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                    ]
                                },
                                {
                                    path: 'nitrogenCompliance',
                                    name: 'nitrogenCompliance',
                                    label: '总氮达标管理',
                                    component: 'seaSources/seaRiver/nitrogenCompliance',
                                    meta: { title: '总氮达标管理', icon: '&#xe606;' },
                                },
                                {
                                    path: 'analystReports',
                                    name: 'analystReports',
                                    label: '分析报告',
                                    component: 'seaSources/seaRiver/analystReports',
                                    meta: { title: '分析报告', icon: '&#xe606;' }
                                },
                                {
                                    path: 'crossSectional',
                                    name: 'crossSectional',
                                    label: '断面档案',
                                    component: 'seaSources/seaRiver/crossSectional',
                                    meta: { title: '断面档案', icon: '&#xe606;' }
                                }
                            ]
                        },
                        {
                            path: 'sewageOutlets',
                            label: '入海排污口',
                            name: 'sewageOutlets',
                            redirect: 'noRedirect',
                            component: 'seaSources/sewageOutlets',
                            meta: { title: '入海排污口', icon: '&#xe60b;', type: '入海排污口' },
                            children: [
                                {
                                    path: 'statisticalAnalysis',
                                    name: 'statisticalAnalysis',
                                    label: '入海排污口-统计分析',
                                    meta: { title: '入海排污口-统计分析', icon: '&#xe606;' },
                                    component: 'seaSources/sewageOutlets/statisticalAnalysis'
                                },
                                {
                                    path: 'nitrogenCompliance',
                                    name: 'nitrogenCompliance',
                                    label: '总氮达标管理',
                                    component: 'seaSources/sewageOutlets/nitrogenCompliance',
                                    meta: { title: '总氮达标管理', icon: '&#xe606;' }
                                },
                                {
                                    path: 'analystReports',
                                    name: 'analystReports',
                                    label: '分析报告',
                                    component: 'seaSources/sewageOutlets/analystReports',
                                    meta: { title: '分析报告', icon: '&#xe606;' }
                                },
                                {
                                    path: 'crossSectional',
                                    name: 'crossSectional',
                                    label: '断面档案',
                                    component: 'seaSources/sewageOutlets/crossSectional',
                                    meta: { title: '断面档案', icon: '&#xe606;' }
                                }
                            ]
                        },
                        {
                            path: 'riverOutfall',
                            label: '入河排污口',
                            name: 'riverOutfall',
                            redirect: 'noRedirect',
                            component: 'seaSources/riverOutfall',
                            meta: { title: '入河排污口', icon: '&#xe60b;', type: '入河排污口' },
                            children: [
                                {
                                    path: 'statisticalAnalysis',
                                    name: 'statisticalAnalysis',
                                    label: '统计分析',
                                    meta: { title: '统计分析', icon: '&#xe606;' },
                                    component: 'seaSources/riverOutfall/statisticalAnalysis'
                                },
                                {
                                    path: 'nitrogenCompliance',
                                    name: 'nitrogenCompliance',
                                    label: '总氮达标管理',
                                    component: 'seaSources/riverOutfall/nitrogenCompliance',
                                    meta: { title: '总氮达标管理', icon: '&#xe606;' }
                                },
                                {
                                    path: 'analystReports',
                                    name: 'analystReports',
                                    label: '分析报告',
                                    component: 'seaSources/riverOutfall/analystReports',
                                    meta: { title: '分析报告', icon: '&#xe606;' }
                                },
                                {
                                    path: 'crossSectional',
                                    name: 'crossSectional',
                                    label: '断面档案',
                                    component: 'seaSources/riverOutfall/crossSectional',
                                    meta: { title: '断面档案', icon: '&#xe606;' }
                                }
                            ]
                        },
                        {
                            path: 'pollutionSource',
                            label: '直排海污染源',
                            name: 'pollutionSource',
                            redirect: 'noRedirect',
                            component: 'seaSources/pollutionSource',
                            meta: { title: '直排海污染源', icon: '&#xe60b;', type: '直排海污染源' },
                            children: [
                                {
                                    path: 'statisticalAnalysis',
                                    name: 'statisticalAnalysis',
                                    label: '统计分析',
                                    meta: { title: '统计分析', icon: '&#xe606;' },
                                    component: 'seaSources/pollutionSource/statisticalAnalysis'
                                },
                                {
                                    path: 'nitrogenCompliance',
                                    name: 'nitrogenCompliance',
                                    label: '总氮达标管理',
                                    component: 'seaSources/pollutionSource/nitrogenCompliance',
                                    meta: { title: '总氮达标管理', icon: '&#xe606;' }
                                },
                                {
                                    path: 'analystReports',
                                    name: 'analystReports',
                                    label: '分析报告',
                                    component: 'seaSources/pollutionSource/analystReports',
                                    meta: { title: '分析报告', icon: '&#xe606;' }
                                },
                                {
                                    path: 'crossSectional',
                                    name: 'crossSectional',
                                    label: '断面档案',
                                    component: 'seaSources/pollutionSource/crossSectional',
                                    meta: { title: '断面档案', icon: '&#xe606;' }
                                }
                            ]
                        }
                    ]
                },
              {
                path: '/marineEnvironment',
                label: '海洋环境质量',
                name: 'marineEnvironment',
                component: 'Layout',
                redirect: 'noRedirect',
                alwaysShow: true,
                meta: { title: '海洋环境质量', icon: '&#xe6d3;', type: '海洋环境质量' },
                children: [
                  {
                    path: 'seawaterQuality',
                    label: '海水水质',
                    name: 'seawaterQuality',
                    redirect: 'noRedirect',
                    component: 'marineEnvironment/seawaterQuality',
                    alwaysShow: true,
                    meta: { title: '海水水质', icon: '&#xe60b;', type: '海水水质' },
                    children: [
                      {
                        path: 'dataSubmission',
                        name: 'dataSubmission',
                        label: '数据报送-海水水质',
                        meta: { title: '数据报送-1', icon: '&#xe606;' },
                        component: 'marineEnvironment/seawaterQuality/dataSubmission',
                      },
                      {
                        path: 'dataAuditing',
                        name: 'dataAuditing',
                        label: '数据审核-1',
                        meta: { title: '数据审核-1', icon: '&#xe606;' },
                        component: 'marineEnvironment/seawaterQuality/dataAuditing',
                      },
                      {
                        path: 'statisticalAnalysis',
                        name: 'statisticalAnalysis',
                        label: '统计分析-1',
                        meta: { title: '统计分析-1', icon: '&#xe606;' },
                        component: 'marineEnvironment/seawaterQuality/statisticalAnalysis',
                      },
                      {
                        path: 'analystReports',
                        name: 'analystReports',
                        label: '分析报告-1',
                        meta: { title: '分析报告-1', icon: '&#xe606;' },
                        component: 'marineEnvironment/seawaterQuality/analystReports',
                      },
                      {
                        path: 'pointMaintenance',
                        name: 'pointMaintenance',
                        label: '点位维护-1',
                        meta: { title: '点位维护-1', icon: '&#xe606;' },
                        component: 'marineEnvironment/seawaterQuality/pointMaintenance',
                      }
                    ]
                  },
                  {
                    path: 'bathingBeach',
                    label: '海水浴场',
                    name: 'bathingBeach',
                    redirect: 'noRedirect',
                    component: 'marineEnvironment/bathingBeach',
                    alwaysShow: true,
                    meta: { title: '海水浴场', icon: '&#xe60b;', type: '海水浴场' },
                    children: [
                      {
                        path: 'dataSubmission',
                        name: 'dataSubmission',
                        label: '数据报送',
                        meta: { title: '数据报送', icon: '&#xe606;' },
                        component: 'marineEnvironment/bathingBeach/dataSubmission',
                      },
                      {
                        path: 'dataAuditing',
                        name: 'dataAuditing',
                        label: '数据审核',
                        meta: { title: '数据审核', icon: '&#xe606;' },
                        component: 'marineEnvironment/bathingBeach/dataAuditing',
                      },
                      {
                        path: 'statisticalAnalysis',
                        name: 'statisticalAnalysis',
                        label: '统计分析',
                        meta: { title: '统计分析', icon: '&#xe606;' },
                        component: 'marineEnvironment/bathingBeach/statisticalAnalysis',
                      },
                      {
                        path: 'analystReports',
                        name: 'analystReports',
                        label: '分析报告',
                        meta: { title: '分析报告', icon: '&#xe606;' },
                        component: 'marineEnvironment/bathingBeach/analystReports',
                      },
                      {
                        path: 'pointMaintenance',
                        name: 'pointMaintenance',
                        label: '点位维护',
                        meta: { title: '点位维护', icon: '&#xe606;' },
                        component: 'marineEnvironment/bathingBeach/pointMaintenance',
                      }
                    ]
                  }
                ]
              },
              {
                path: '/marineEcology',
                label: '海洋生态',
                name: 'marineEcology',
                component: 'Layout',
                redirect: 'noRedirect',
                alwaysShow: true,
                meta: { title: '海洋生态', icon: '&#xe6d3;', type: '海洋生态' },
                children: []
              },
              {
                path: '/beidaiheSpecial',
                label: '北戴河专项',
                name: 'beidaiheSpecial',
                component: 'Layout',
                redirect: 'noRedirect',
                meta: { title: '北戴河专项', icon: '&#xe6d3;', type: '北戴河专项' },
                children: []
              },
              {
                path: '/gisMap',
                label: '一张图',
                name: 'gisMap',
                component: 'Layout',
                redirect: 'noRedirect',
                meta: { title: '一张图', icon: '&#xe6d3;', type: '一张图' },
                children: []
              },
              {
                path: '/systemManagement',
                label: '系统管理',
                name: 'systemManagement',
                component: 'Layout',
                redirect: 'noRedirect',
                alwaysShow: false,
                meta: { title: '系统管理', icon: '&#xe6d3;', type: '系统管理' },
                children: [
                  {
                    path: 'userManagement',
                    label: '用户管理',
                    name: 'userManagement',
                    redirect: 'noRedirect',
                    component: 'systemManagement/userManagement',
                    alwaysShow: false,
                    meta: { title: '用户管理', icon: '&#xe60b;', type: '用户管理' },
                  },
                  {
                    path: 'permissionsManagement',
                    label: '角色管理',
                    name: 'permissionsManagement',
                    redirect: 'noRedirect',
                    component: 'systemManagement/permissionsManagement',
                    alwaysShow: false,
                    meta: { title: '角色管理', icon: '&#xe60b;', type: '角色管理' },
                  },
                  {
                    path: 'directoryManagement',
                    label: '目录管理',
                    name: 'directoryManagement',
                    redirect: 'noRedirect',
                    component: 'systemManagement/directoryManagement',
                    alwaysShow: false,
                    meta: { title: '目录管理', icon: '&#xe60b;', type: '目录管理' },
                  },
                  {
                    path: 'passwordUpdated',
                    label: '密码修改',
                    name: 'passwordUpdated',
                    redirect: 'noRedirect',
                    component: 'systemManagement/passwordUpdated',
                    alwaysShow: false,
                    meta: { title: '密码修改', icon: '&#xe60b;', type: '密码修改' },
                  }
                ]
              }
            ]
        }
        setTimeout(() => {
            resolve(backData)
        }, 600)
    })
}
